﻿using OpenReflect.Domain.Contracts;
using OpenReflect.Domain.Contracts.Declarations;
using OpenReflect.Domain.Contracts.HasMarkers;

namespace OpenReflect.Domain.Model
{
	public class Method : MethodBase, IMethod
	{
		public Method(IMethodDeclaration declaration, IMethodBody body)
		{
			Declaration = declaration;
			Body = body;
		}

		#region IMethod Members

		public IMethodDeclaration Declaration { get; private set; }

		public IMethodBody Body { get; private set; }

		IDeclaration IHasDeclaration.Declaration
		{
			get { return Declaration; }
		}

		#endregion
	}
}